home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / basics / qtmovietrack / application files / comapplication.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  2.2 KB  |  111 lines

  1. //////////
  2. //
  3. //    File:        ComApplication.h
  4. //
  5. //    Contains:    Functions that could be overridden in a specific application.
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <1>         11/05/99    rtm        first file; based on earlier sample code
  14. //       
  15. //////////
  16.  
  17. #pragma once
  18.  
  19.  
  20. //////////
  21. //
  22. // header files
  23. //
  24. //////////
  25.  
  26. #ifndef __QUICKTIMEVR__
  27. #include <QuickTimeVR.h>
  28. #endif
  29.  
  30. #ifndef __TEXTUTILS__
  31. #include <TextUtils.h>
  32. #endif
  33.  
  34. #ifndef __SCRIPT__
  35. #include <Script.h>
  36. #endif
  37.  
  38. #if TARGET_OS_MAC
  39. #ifndef __APPLEEVENTS__
  40. #include <AppleEvents.h>
  41. #endif
  42. #include "MacFramework.h"
  43. #endif
  44.  
  45. #if TARGET_OS_WIN32
  46. #include "WinFramework.h"
  47. #endif
  48.  
  49. #ifndef __QTUtilities__
  50. #include "QTUtilities.h"
  51. #endif
  52.  
  53. #include "ComResource.h"
  54.  
  55.  
  56. //////////
  57. //
  58. // constants
  59. //
  60. //////////
  61.  
  62.  
  63. //////////
  64. //
  65. // structures
  66. //
  67. //////////
  68.  
  69. // application-specific data
  70. typedef struct ApplicationDataRecord {
  71.     Boolean            fSlaveTimebase;
  72.     Boolean            fSlaveAudio;
  73.     Boolean            fSlaveGraphicsMode;
  74.     Boolean            fSlaveDuration;
  75.     
  76.     Boolean            fAutoPlayChild;
  77.     Boolean            fFrameStepChild;
  78.     
  79.     Boolean            fScalingOn;
  80.     OSType            fScalingType;
  81.     
  82.     Boolean            fLoopingOn;
  83.     UInt8            fLoopingState;
  84.     
  85.     Boolean            fCustomRectOn;
  86.     Boolean            fTopAndLeftOn;
  87.     Boolean            fHeightAndWidthOn;
  88.  
  89.     long            fTop;
  90.     long            fLeft;
  91.     long            fHeight;
  92.     long            fWidth;
  93.     
  94. } ApplicationDataRecord, *ApplicationDataPtr, **ApplicationDataHdl;
  95.  
  96.  
  97. //////////
  98. //
  99. // function prototypes
  100. //
  101. //////////
  102.  
  103. #if TARGET_OS_MAC
  104. void                    QTApp_InstallAppleEventHandlers (void);
  105. PASCAL_RTN OSErr        QTApp_HandleOpenApplicationAppleEvent (const AppleEvent *theMessage, AppleEvent *theReply, unsigned long theRefcon);            
  106. PASCAL_RTN OSErr        QTApp_HandleOpenDocumentAppleEvent (const AppleEvent *theMessage, AppleEvent *theReply, unsigned long theRefcon);
  107. PASCAL_RTN OSErr        QTApp_HandlePrintDocumentAppleEvent (const AppleEvent *theMessage, AppleEvent *theReply, unsigned long theRefcon);
  108. PASCAL_RTN OSErr        QTApp_HandleQuitApplicationAppleEvent (const AppleEvent *theMessage, AppleEvent *theReply, unsigned long theRefcon);
  109. #endif    // TARGET_OS_MAC
  110.  
  111. // the other function prototypes are in the file MacFramework.h or WinFramework.h